package com.study.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tag")
public class Tag {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    private String tag;
    private String userId;

    public static Tag from(String s,String userId) {
        Tag tag = new Tag();
        tag.setTag(s)   ;
        tag.setUserId(userId);
        return tag;
    }

}
